Skip to content

feat: add Python, Go, and PHP proxy server examples#5

Merged
mrgoonie merged 2 commits intomainfrom
feat/add-python-go-php-proxy-examples
Mar 27, 2026
Merged

feat: add Python, Go, and PHP proxy server examples#5
mrgoonie merged 2 commits intomainfrom
feat/add-python-go-php-proxy-examples

Conversation

@mrgoonie
Copy link
Copy Markdown
Contributor

Summary

  • Add lightweight WebSocket proxy implementations in Python (aiohttp), Go (gorilla/websocket), and PHP (Ratchet + ReactPHP)
  • Each example includes source, dependency file, .env.example, and Dockerfile
  • All implement the same proxy pattern: token injection, frame sanitization, origin validation, API key auth, health check
  • Update README with "Alternative Proxy Servers" quick-start section

Test plan

  • Go proxy compiles (go build)
  • Python proxy syntax check (py_compile)
  • Widget build still passes (npm run build)
  • Manual test: run each proxy with a real GoClaw gateway
  • Docker build test for each language

Add lightweight WebSocket proxy implementations in 3 languages:
- Python (aiohttp): examples/python-proxy/
- Go (gorilla/websocket): examples/go-proxy/
- PHP (Ratchet + ReactPHP): examples/php-proxy/

Each includes source, dependency file, .env.example, and Dockerfile.
All implement the same proxy pattern: token injection, frame
sanitization, origin validation, API key auth, and health check.

Update README with "Alternative Proxy Servers" section.
@mrgoonie mrgoonie merged commit 81a26d4 into main Mar 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant